{{current}}
<form nz-form [nzLayout]="'vertical'" [formGroup]="form" (ngSubmit)="onSubmit()">
  <formly-form
    [form]="getForm('form1')"
    [model]="model1"
    [fields]="fields1"
    *ngIf="current === 0">
  </formly-form>
  <formly-form
    [form]="getForm('form2')"
    [model]="model2"
    [fields]="fields2"
    *ngIf="current === 1">
  </formly-form>
  <div *ngIf="getForm('form1')?.get('category')?.errors?.['required']">11111111</div>
</form>
<!--  <button nz-button nz-type="primary" type="submit">提交</button>-->
<!--  <button nz-button nz-type="danger" type="reset">重置</button>-->
<button (click)="test()">test</button>
